/*
 * @Author: chengjiang
 * @Date: 2024-06-08 17:05:35
 * @Description: 
 */
// 每一个存储的模块，命名规则use开头，store结尾
import { defineStore } from 'pinia'

export const useFooterInfoStore = defineStore({
    id: 'footerInfo', // 必须指明唯一的pinia仓库的id
    state: () => {
        return {
        warn : "",
        hot: '',
        tel: "",
        address: "",
        ip: "",
        wxcode: "",
        }
    },
    getters: {
        doubleCount: (state) => state
    },
    actions: {
        change(warn : string, hot : string, tel : string, address : string, ip : string, wxcode : string) {
            this.warn = warn
            this.hot = hot
            this.tel = tel
            this.address = address
            this.ip = ip
            this.wxcode = wxcode
        },
        changeVxCode(wxcode : string) {
            this.wxcode = wxcode
        },
    },
})